package com.shop.service;

import com.shop.dao.UserDao;
import com.shop.dao.impl.UserDaoImpl;
import com.shop.entity.User;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2022/3/10 8:57
 **/
public class UserServiceImpl implements  UserService {
	UserDao dao = new UserDaoImpl();

	@Override
	public User findUserByAccount(String account) {
		return dao.findUserByAccount(account);
	}

	@Override
	public User findUserByPhone(String phone) {
		return dao.findUserByPhone(phone);
	}

	@Override
	public int add(User user) {
		return dao.add(user);
	}


}
